package cn.edu.swpu.cins.u_chain.frontend.service.Works;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.Works.WorksViewDetail;
import cn.edu.swpu.cins.u_chain.frontend.entity.dto.Works.WorksViewList;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.Works.WorksInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface WorksService {

    int addWorks(WorksInfo worksInfo);

    int updateWorksVideo(int worksId,MultipartFile video) throws IOException;

    int insertWorksPrintScreen(int worksId, MultipartFile[] images) throws IOException;

    WorksViewList selectAllWorks();

    List<WorksViewDetail> selectAllWorksDetail(List<Integer> worksIds);

    void downLoadExcel(List<Integer> worksIds, HttpServletResponse response);

    void likeWorks(int worksId, int userId);

    void unLikeWorks(int worksId, int userId);

}
